.mainPhoto {
    width: 100%;
    /* 使宽度适应父容器 */
    max-width: 100%;
    /* 确保不会超出父容器 */
    height: auto;
    /* 保持图片的纵横比 */
}

.mainPhotonew {
    /* width: 50%; */
    /* 内联进太大的图*/
    max-width: 100%;
    /* 确保不会超出父容器 */
    height: auto;
    /* 保持图片的纵横比 */
    display: block;
    /* 确保图片为块级元素 */
    margin: 0 auto;
    /* 自动水平居中 */
}

/* 这是头图 */
.model-image-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3px;
    /* 调整父容器内的间距 */
}

.model-image-container img {
    width: 48%;
    /* 图片宽度设为父容器的48%，这样可以保证两张图片在父容器内并列 */
    height: auto;
    /* 保持图片比例 */
    object-fit: cover;
    /* 确保图片按比例缩放并适应容器 */
    border: 1px solid #ddd;
    /* 可选：给图片添加边框，保持一致性 */
}

.text-grid {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-bottom: 20px;
}

.text-column {
    width: calc(25% - 10px);
    /* 让每列占父容器的四分之一宽度 */
    font-size: 16px;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    /* 图片之间的间距 */
}

.image-item {
    width: calc(50% - 10px);
    /* 每张图片占父容器宽度的50% */
}

.image-item img {
    width: 100%;
    height: auto;
    /* 保持图片比例 */
}


body {
    box-sizing: border-box;
    background-color: black;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* 隐藏水平滚动条 */
    font-family: 'Fredoka', sans-serif;
    /* 应用字体 */
}

/* 这些是表格的内容 */
table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin-bottom: 20px;
    /* 表格底部间距 */
}

th,
td {
    border: 1px solid #FFFFFF;
    /* 将边框颜色设置为白色 */
    padding: 10px;
    border: 1px solid #ccc;
    /* 为单元格添加边框 */
}

th {
    font-weight: bold;
}

td {
    font-weight: normal;
}

.medium {
    font-weight: bold;
}

/* 这些是其它的部分 */
.engineeringbody {
    background-color: black;
}

.text {
    display: flex;
    /* height: 2000px; */
    padding: 50px 0;
}

table,
p,
ol {
    line-height: 1.6;
    /* 设置行距为1.6倍字体大小 */
    margin-bottom: 15px;
    /* 底部留有适当的间距，防止内容挤在一起 */
}

/* 针对 p 标签中特定类的样式设置 */
p.summarytable,
p.introducetable {
    line-height: 1.8;
    /* 行距稍大，适合长段文本 */
    margin-bottom: 20px;
    /* 增加间距，确保段落之间有足够的空白 */
    text-align: center;
    /* 在父容器中居中对齐 */
}

.formula {
    display: block;
    text-align: center;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    margin: 20px 0;
    font-size: 0.75em;
    /* 调整字号比例，缩小公式大小 */
    line-height: 1.2em;
    /* 调整行高以适应缩小后的文字 */
}

.left {
    width: 30%;
    /* background-color: rgb(99, 67, 173); */
}

.right {
    width: 70%;
    /* background-color: rgb(128, 143, 139); */
}

/* 这里是卡片背景哦 */
.Pzlcard1 {
    width: 100%;
    /* 卡片宽度设置为100% */
    padding: 5rem;
    /* 卡片内部留白，保持内容不会紧贴边缘 */
    border-radius: 5rem;
    /* 圆角半径设置为5rem */
    box-shadow: 0px 64px 96px rgba(91, 88, 255, 0.5);
    /* 为卡片添加轻微阴影效果 */
    margin-bottom: 10rem;
    /* 每个卡片底部间隔2rem */
    color: white;
    /* 文字颜色设置为白色 */
    background-color: #5B58FF;
    /* 浅紫色背景 */
}

.Pzlcard2 {
    width: 100%;
    /* 卡片宽度设置为100% */
    padding: 5rem;
    /* 卡片内部留白，保持内容不会紧贴边缘 */
    border-radius: 5rem;
    /* 圆角半径设置为10rem */
    box-shadow: 0px 64px 96px rgba(43, 70, 255, 0.5);
    /* 为卡片添加轻微阴影效果 */
    margin-bottom: 10rem;
    /* 每个卡片底部间隔2rem */
    color: white;
    /* 文字颜色设置为白色 */
    background-color: #2B46FF
        /* 蓝紫色背景 */
}

a {
    text-decoration: none;
    /* color: aliceblue; */
    transition: color 0.3s ease
}

.styled-alink {
    font-style: italic;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.styled-alink:hover {
    text-decoration: underline;
    color: #5B58FF;
}

.engineeringcontent {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-color: aliceblue;
    border: 2px solid white;
    border-radius: 10px;
    margin: 50px 20px 0 10px;
    padding: 25px 30px;
    color: rgb(255, 255, 255);
    /* 这里是字体颜色 */
}

.part1content {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 5px 0 5px 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    display: block;
    /* 确保其是块级元素，可以垂直扩展 */
    width: auto;
    /* 自动调整宽度 */
    height: auto;
    /* 自动调整高度 */
}

.part1 {
    margin: 2px 0;
    display: block;
    color: rgb(255, 255, 255);
    /* 这里是字体颜色 */
}

.contentTitle {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
    cursor: pointer;
    color: rgb(255, 255, 255);
    /* 这里是字体颜色 */
}

.introduction {
    margin: 150px 50px 100px 70px;
    /* color: rgb(206, 205, 205); */
    scroll-behavior: smooth;
    color: rgb(255, 255, 255);
}

.title1 {
    color: rgb(255, 255, 255);
    font-size: 30px;
    margin: 20px 0;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    /* 粗体 */
}

.details {
    margin: 20px;
}

.subtitle {
    color: aliceblue;
    font-size: 18px;
    margin: 20px 5px;
}

.imgdetails {
    width: 100%;
    ;
    margin: 10px;
}

a:hover {
    color: #5B58FF;
}

* {
    scroll-behavior: smooth;
    scroll-behavior: smooth;
}

#Q {
    color: rgb(177, 150, 31);
}

.link {
    color: rgb(62, 212, 212);
    font-weight: bold;
}

#referenceTitle {
    margin-top: 100px;
    color: rgb(126, 126, 197);
}

#reference {
    color: rgb(255, 255, 255);
}

#reference a {
    /* text-decoration: none; */
    color: rgb(132, 132, 197);
}

#reference a:hover {
    text-decoration: none;
    color: rgb(2, 2, 255);
}